package com.smugglersend.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageButton;
import android.widget.Switch;


/**
 * Created by jvasquez on 4/28/2014.
 */
public class Drugs extends Activity implements View.OnClickListener{
    ImageButton drug_marij;
 //   ImageButton drug_cocaine;
//    ImageButton drug_xtasy;
//    ImageButton drug_codaine;
    ImageButton drug_heroin;
//    ImageButton drug_prescription;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.drugs);
        initialize();

    }

    private void initialize() {
        drug_marij = (ImageButton) findViewById(R.id.marijuanaDrug);
        drug_heroin =(ImageButton) findViewById(R.id.Heroin_drug);
        drug_heroin.setOnClickListener(this);
        drug_marij.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
           case R.id.marijuanaDrug:
                Intent drugIntent = new Intent(Drugs.this, GameLevel.class);
                startActivity(drugIntent);

                break;
            case R.id.Heroin_drug:
                Intent drugHeroin = new Intent(Drugs.this, GameLevel.class);
                startActivity(drugHeroin);

                break;
        }

    }
}
